﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KDS.Mes.Mes.ProductModes
{
    /// <summary>
    /// 生产模式信息
    /// </summary>
    [Table("T_ProductMode")]
    public class ProductMode : FullAuditedEntity
    {
        /// <summary>
        /// 生产模式名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string ProductModeName { get; set; }

        /// <summary>
        /// 生产模式代码
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string ProductModeCode { get; set; }

        /// <summary>
        /// 默认
        /// </summary>
        public bool IsDefault { get; set; }

        public ProductMode(string productModeName, string productModeCode)
        {
            ProductModeName = productModeName;
            ProductModeCode = productModeCode;

        }

        public ProductMode()
        {

        }
    }
}
